package springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:spring boot 启动类
 */
@RestController
@ServletComponentScan
@SpringBootApplication
public class Application {
	
	/**注册Spring Util
    * 这里为了和上一个冲突，所以方面名为：springUtil2
    * 实际中使用springUtil
    */
/*	@Bean
	public SpringUtil springUtil2(){return new SpringUtil();}
	*/
	/**
    * 注册Servlet.不需要添加注解：@ServletComponentScan
    * @return
    */
    /* @Bean
	 public ServletRegistrationBean DemoServlet(){
         return new ServletRegistrationBean(new DemoServlet(),"/DemoServlet/*");
     }*/

	/**
	 *
	参数里VM参数设置为：
	-javaagent:.\lib\springloaded-1.2.4.RELEASE.jar -noverify
	* @param args
	*/

  public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
  }

}